/**
 * 
 */
package com.rio.dandan.bean;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 
 * Constants.java
 * 
 * @author 宋陆
 * @version 1.0 2014年7月4日
 */
@Component
public class Constants {
    public static String UPLOAD_BASE_DIR;
    public static String UPLOAD_TMP_DIR;
    public static String UPLOAD_USER_DIR;
    public static String UPLOAD_BASE_URL;
    public static String UPLOAD_TMP_URL;
    public static String UPLOAD_USER_URL;

    @Value("#{constant.upload_base_dir}")
    public void setUploadBaseDir(String uploadBaseDir) {
        Constants.UPLOAD_BASE_DIR = uploadBaseDir;
    }

    @Value("#{constant.upload_base_url}")
    public void setUploadBaseUrl(String uploadBaseUrl) {
        Constants.UPLOAD_BASE_URL = uploadBaseUrl;
    }
    
    @Value("#{constant.upload_tmp_dir}")
    public void setUploadTmpDir(String uploadTmpDir) {
        Constants.UPLOAD_TMP_DIR = uploadTmpDir;
    }

    @Value("#{constant.upload_tmp_url}")
    public void setUploadTmpUrl(String uploadTmpUrl) {
        Constants.UPLOAD_TMP_URL = uploadTmpUrl;
    }
    
    @Value("#{constant.upload_user_dir}")
    public void setUploadUserDir(String uploadUserDir) {
        Constants.UPLOAD_USER_DIR = uploadUserDir;
    }

    @Value("#{constant.upload_user_url}")
    public void setUploadUserUrl(String uploadUserUrl) {
        Constants.UPLOAD_USER_URL = uploadUserUrl;
    }
}
